package com.lantosec.hmrp.modules.archives.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import com.lantosec.hmrp.modules.archives.vo.UserGiftDisposeVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 领导干部拒收或上交礼金、礼品情况登记表 实体类
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserGiftDispose extends BaseEntity<UserGiftDisposeVO> {

    private static final long serialVersionUID = 1L;
    public UserGiftDispose(UserGiftDisposeVO vo){
        this.userGiftDisposeId = vo.getUserGiftDisposeId();
        this.userId = vo.getUserId();
        this.disposeType = vo.getDisposeType();
        this.disposeDate = vo.getDisposeDate();
        this.cashGift = vo.getCashGift();
        this.giftName = vo.getGiftName();
        this.giftNum = vo.getGiftNum();
        this.totalRmb = vo.getTotalRmb();
        this.handDept = vo.getHandDept();
        this.giver = vo.getGiver();
        this.remark = vo.getRemark();
        this.createId = vo.getCreateId();
        this.createUser = vo.getCreateUser();
        this.createTime = vo.getCreateTime();
        this.verifyId = vo.getVerifyId();
        this.verifyUser = vo.getVerifyUser();
        this.verifyTime = vo.getVerifyTime();
        this.verifyStatus = vo.getVerifyStatus();
    }

    @Override
    public UserGiftDisposeVO convertToVO(){
        return new UserGiftDisposeVO(this);
    }


    /**
     * 主键ID
     */
    @TableId(value = "user_gift_dispose_id", type = IdType.ASSIGN_UUID)
    private String userGiftDisposeId;

    /**
     * 用户主表ID
     */
    private String userId;

    /**
     * 礼品处理类型（0：拒收，1：上交）
     */
    private Integer disposeType;

    /**
     * 处理时间
     */
    private String disposeDate;

    /**
     * 礼金
     */
    private BigDecimal cashGift;

    /**
     * 礼品名称
     */
    private String giftName;

    /**
     * 礼品数量
     */
    private BigDecimal giftNum;

    /**
     * 礼品总金额
     */
    private BigDecimal totalRmb;

    /**
     * 上交部门
     */
    private String handDept;

    /**
     * 送礼方
     */
    private String giver;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人ID
     */
    private String createId;

    /**
     * 创建人姓名
     */
    private String createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 审核人ID
     */
    private String verifyId;

    /**
     * 审核人姓名
     */
    private String verifyUser;

    /**
     * 审核时间
     */
    private Date verifyTime;

    /**
     * 审核状态（0：未审核，1：以审核）
     */
    private Integer verifyStatus;


    public enum ColName {
        user_gift_dispose_id, user_id, dispose_type, dispose_date, cash_gift, gift_name, gift_num, total_rmb, hand_dept, giver, remark, create_id, create_user, create_time, verify_id, verify_user, verify_time, verify_status,
    }
}
